<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
                var obj = {
                    propA: "属性propAA",
                    propNum: 100,
                    propDate: new Date(),
                    propObj: {
                        argA: "属性argA",
                        argNum: 2000
                    }
                }
                function cloneObj(obj){
                    var newobj={};
                    for(var key in obj){
                        if(typeof (obj[key]) =="object"){
                            let tempData=cloneObj(obj[key]);
                            newobj[key]=tempData;
                        }else{
                            newobj[key]=obj[key];
                        }
                    }
                    return newobj;
                }
    </script>
</head>
<body>
    
</body>
</html>